package com.imufe.springbootshiro.service.impl;

import com.imufe.springbootshiro.domain.User;
import com.imufe.springbootshiro.mapper.UserMapper;
import com.imufe.springbootshiro.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Auther: sunYong
 * @Date: 2019/2/9 20:58
 * @Description: ${package_name}
 */
@Service
public class UserServiceImpl implements UserService {
//    注入Mapper接口
    @Autowired
    private UserMapper userMapper;

    @Override
    public User findById(Integer id) {
        return userMapper.findById(id);
    }

    @Override
    public User findByName(String name) {
        return userMapper.findByName(name);
    }

}
